package Entity;


import java.util.Properties;

public class Util {
	 private static Properties result;
	    public static Properties getInitProperties() {
	        if (result==null){
	        result = new Properties();
	 
	        // We need to tell the context where and how to look
	        result.setProperty("java.naming.factory.initial",
	                "com.sun.enterprise.naming.SerialInitContextFactory");
	        result.setProperty("java.naming.factory.url.pkgs",
	                "com.sun.enterprise.naming");
	        result.setProperty("java.naming.factory.state",
	                "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
	 
	        // Should not be necessary for local test (default values), but
	        // currently is
	        result.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
	        result.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
	        }
	        return result;
	    }
	}